package com.ali;

import com.ali.dao.UserMapper;
import com.ali.entity.User;
import mybatis.proxy.MyProxyFactory;

import java.util.Arrays;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        UserMapper userMapper = MyProxyFactory.getProxy(UserMapper.class);

        List<User> users = userMapper.queryUser(1, "zs", "张三");
        System.out.println("users：" + Arrays.toString(users.toArray()));

        User user = userMapper.queryUserById(1, "zs", "张三");
        System.out.println("user：" + user);
    }
}
